import listBuilder from "@/comps/list/listBuilder";

/*
lb.add("name","产品名称",80)
lb.add("fastName","助记名称",80)
lb.add("param","产品参数",80)
lb.add("code","编码",80)
lb.add("cat","分类",80)
lb.add("price","价格",80)
lb.add("unit","主单位",80)
lb.add("isOn","启用",80)

*/
export default function () {
    let lb = listBuilder()
    lb.add("id","#",80)

    lb.add("code","编码",150)
    lb.add("name","产品名称",180)
    lb.add("fastName","助记名称",180)
    lb.add("param","产品参数",0)
    lb.add("cat","分类",150).setListIsObjectName()
    lb.add("price","价格",100)
    lb.add("unit","主单位",100).setListIsObjectName()
    lb.add("isOn","启用",100).setListIsSwitch()
    lb.addAction(120).setAlignRight()
    return lb.headers
}